<h1>Listing locations</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Short</th>
  </tr>

<% @locations.each do |location| %>
  <tr>
    <td><%=h location.title %></td>
    <td><%=h location.short %></td>
    <td><%= link_to 'Show', location %></td>
    <td><%= link_to 'Edit', edit_location_path(location) %></td>
    <td><%= link_to 'Destroy', location, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New location', new_location_path %>